<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CAD_Doc: gmock_test_utils Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">CAD_Doc<span id="projectnumber">&#160;1.0</span>
   </div>
   <div id="projectbrief">cad synopsis</div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('namespacegmock__test__utils.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle"><div class="title">gmock_test_utils Namespace Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae6b4256fed63c744d722ecdf0f217529" id="r_ae6b4256fed63c744d722ecdf0f217529"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae6b4256fed63c744d722ecdf0f217529">GetSourceDir</a> ()</td></tr>
<tr class="separator:ae6b4256fed63c744d722ecdf0f217529"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3965eb0947849f247899f6edff7051f7" id="r_a3965eb0947849f247899f6edff7051f7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3965eb0947849f247899f6edff7051f7">GetTestExecutablePath</a> (executable_name)</td></tr>
<tr class="separator:a3965eb0947849f247899f6edff7051f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac27ecc41752ab1bb57ffabb2817dbef6" id="r_ac27ecc41752ab1bb57ffabb2817dbef6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac27ecc41752ab1bb57ffabb2817dbef6">GetExitStatus</a> (exit_code)</td></tr>
<tr class="separator:ac27ecc41752ab1bb57ffabb2817dbef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab436e920b5feb62a33936b0d839702e7" id="r_ab436e920b5feb62a33936b0d839702e7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab436e920b5feb62a33936b0d839702e7">Main</a> ()</td></tr>
<tr class="separator:ab436e920b5feb62a33936b0d839702e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a31a0e33565ec805d314cb0a4eb8317e6" id="r_a31a0e33565ec805d314cb0a4eb8317e6"><td class="memItemLeft" align="right" valign="top"><a id="a31a0e33565ec805d314cb0a4eb8317e6" name="a31a0e33565ec805d314cb0a4eb8317e6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Subprocess</b> = <a class="el" href="classgtest__test__utils_1_1_subprocess.html">gtest_test_utils.Subprocess</a></td></tr>
<tr class="separator:a31a0e33565ec805d314cb0a4eb8317e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a959c5af591e4d49b6d35745205b64509" id="r_a959c5af591e4d49b6d35745205b64509"><td class="memItemLeft" align="right" valign="top"><a id="a959c5af591e4d49b6d35745205b64509" name="a959c5af591e4d49b6d35745205b64509"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TestCase</b> = gtest_test_utils.TestCase</td></tr>
<tr class="separator:a959c5af591e4d49b6d35745205b64509"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f0938b5e8839ebc847b52a38f4d35e3" id="r_a6f0938b5e8839ebc847b52a38f4d35e3"><td class="memItemLeft" align="right" valign="top"><a id="a6f0938b5e8839ebc847b52a38f4d35e3" name="a6f0938b5e8839ebc847b52a38f4d35e3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>environ</b> = gtest_test_utils.environ</td></tr>
<tr class="separator:a6f0938b5e8839ebc847b52a38f4d35e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0c69f8ce649fdd5a17f99deedf3eb29" id="r_ab0c69f8ce649fdd5a17f99deedf3eb29"><td class="memItemLeft" align="right" valign="top"><a id="ab0c69f8ce649fdd5a17f99deedf3eb29" name="ab0c69f8ce649fdd5a17f99deedf3eb29"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SetEnvVar</b> = gtest_test_utils.SetEnvVar</td></tr>
<tr class="separator:ab0c69f8ce649fdd5a17f99deedf3eb29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9392c288e6da3024d65ec0bddc0d86c3" id="r_a9392c288e6da3024d65ec0bddc0d86c3"><td class="memItemLeft" align="right" valign="top"><a id="a9392c288e6da3024d65ec0bddc0d86c3" name="a9392c288e6da3024d65ec0bddc0d86c3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PREMATURE_EXIT_FILE_ENV_VAR</b> = gtest_test_utils.PREMATURE_EXIT_FILE_ENV_VAR</td></tr>
<tr class="separator:a9392c288e6da3024d65ec0bddc0d86c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><pre class="fragment">Unit test utilities for Google C++ Mocking Framework.</pre> </div><h2 class="groupheader">Function Documentation</h2>
<a id="ac27ecc41752ab1bb57ffabb2817dbef6" name="ac27ecc41752ab1bb57ffabb2817dbef6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac27ecc41752ab1bb57ffabb2817dbef6">&#9670;&#160;</a></span>GetExitStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gmock_test_utils.GetExitStatus </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>exit_code</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Returns the argument to exit(), or -1 if exit() wasn't called.

Args:
  exit_code: the result value of os.system(command).
</pre> 
</div>
</div>
<a id="ae6b4256fed63c744d722ecdf0f217529" name="ae6b4256fed63c744d722ecdf0f217529"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6b4256fed63c744d722ecdf0f217529">&#9670;&#160;</a></span>GetSourceDir()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gmock_test_utils.GetSourceDir </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Returns the absolute path of the directory where the .py files are.</pre> 
</div>
</div>
<a id="a3965eb0947849f247899f6edff7051f7" name="a3965eb0947849f247899f6edff7051f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3965eb0947849f247899f6edff7051f7">&#9670;&#160;</a></span>GetTestExecutablePath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gmock_test_utils.GetTestExecutablePath </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>executable_name</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Returns the absolute path of the test binary given its name.

The function will print a message and abort the program if the resulting file
doesn't exist.

Args:
  executable_name: name of the test binary that the test script runs.

Returns:
  The absolute path of the test binary.
</pre> 
</div>
</div>
<a id="ab436e920b5feb62a33936b0d839702e7" name="ab436e920b5feb62a33936b0d839702e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab436e920b5feb62a33936b0d839702e7">&#9670;&#160;</a></span>Main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gmock_test_utils.Main </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Runs the unit test.</pre> 
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacegmock__test__utils.html">gmock_test_utils</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
  </ul>
</div>
</body>
</html>
